const requireEx=require('yi-require');

const middleware = function(req, res, next) {
    let userId = req.params.id;

    req.mongo.collection('mall').find({$or:[{userId:userId},{members:userId}]}).toArray((e,r)=>{
        res.reply({code:0,message:'查询成功',data:r});
    });
}

module.exports = {
    open:true,
    description: '获取用户商场',
    middleware: middleware,
    handler(req, res, next) {

    }
};
